package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;

import org.json.JSONObject;


/*
*  司机找货源生成运单
* */

public class WaybillTrucksCreateApi extends AbsRequest<WaybillTrucksCreateApi.WaybillTrucksCreateParams, JSONObject> {

    public WaybillTrucksCreateApi(WaybillTrucksCreateParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getWaybillTrucksCreateUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class WaybillTrucksCreateParams extends BaseParams {

        public WaybillTrucksCreateParams(String truckId, String goodId, String price) {
            put("truckId",truckId);
            put("goodId",goodId);
            put("price",price);
        }
    }


}
